In [1]:
from numpy import *
from os import path, listdir
from bokeh.plotting import figure, output_notebook, show
from myfunctions import analyze, plotS21
In [2]:
output_notebook()
In [16]:
datapath = '\\\\128.230.72.36\labshare\Experiments\JPM\\2QubitJPMChipDispersiveSearch\powers'
files = listdir(datapath)
filepaths = []
powers = []
results = []
for f in files:
filepaths.append(path.join(datapath, f))
powers.append(float(f[:3]))
results.append(analyze(filepaths[-1]))
In [35]:
x = []
y = []
for i, result in enumerate(results):
# print(result)
x.append(powers[i])
y.append(results[i]['f0']*1e-9)
In [25]:
from bokeh.plotting import Plot
In [50]:
p = figure(title="Resonance at various Powers", x_axis_label="Resonance (GHz)", y_axis_label="Power (dB)")
p.circle(y,x)
show(p)
In [52]:
p = figure(title="Tiny dispersive shift, high and low powers", x_axis_label="Frequency (GHz)",y_axis_label="S21 (dB)");
for i, result in enumerate(results):
if powers[i] == -20 or powers[i] == -70:
# print(powers[i])
# print(results[i])
p.line(result['freq']/1e9, result['dBm'], legend = str(powers[i]) + ' dB')
show(p)
In [ ]: